# Contributor: Grigory Kirillov <txgk@bk.ru>
# Maintainer:
pkgname=k2
pkgver=0_git20220807
_commit="45fbcc2aede0af9b829547e1390c48adee57e8e3"
pkgrel=1
pkgdesc="Chess engine with UCI and Xboard interface"
url="https://github.com/serg-meus/k2"
arch="all"
license="GPL-2.0-only"
options="!check" # no test suite
makedepends="qt5-qtbase-dev" # qmake
source="https://github.com/serg-meus/k2/archive/$_commit.tar.gz"
builddir="$srcdir/k2-$_commit"

build() {
	qmake-qt5
	make -e
}

package() {
	install -Dm755 k2 -t "$pkgdir"/usr/bin
}

sha512sums="
eb69aab7a68ee82faaf3c275b92ae0cfee75d0d869f154b1fc85eb7c08b580f49f88d3d7ff9add8018626b54ea2360da0d9407b427e15db4c0cd23efb721dc48  45fbcc2aede0af9b829547e1390c48adee57e8e3.tar.gz
"
